package com.gcb.domain.dto;

import com.gcb.common.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 用户修改密码
 */
@Data
public class GcbUserForgetPasswordDTO implements Serializable {

    private Long id;

    /**
     * 手机号码
     */
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式错误")
    @NotBlank(message = "手机号码为空")
    private String mobile;
    
    /**
     * 设置的新密码
     */
    @NotBlank(message = "新密码为空")
    private String newPassword;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码为空")
    private String verifyCode;
    
}
